import React, { Component } from 'react'

import {connect} from 'react-redux'
import {getUserList} from '../../redux/chatuser.redux'

import UserCard from '../usercard/usercard'
@connect(
    state => state.chatuser,
    {getUserList}
)
export default class Boss extends Component {

    componentDidMount(){
        this.props.getUserList('genuis')
    }
    render() {
        console.log(this.props)
        return <UserCard userList={this.props.userList}></UserCard>
    }
}
